home *** CD-ROM | disk | FTP | other *** search
- class Node {
- // $FF: renamed from: OP int
- public static final int field_0 = 0;
- public static final int VALUE = 1;
- public static final int CELL = 2;
- int type;
- Node left;
- Node right;
- int row;
- int column;
- float value;
- // $FF: renamed from: op char
- char field_1;
-
- public Node() {
- this.left = null;
- this.right = null;
- this.value = 0.0F;
- this.row = -1;
- this.column = -1;
- this.field_1 = 0;
- this.type = 1;
- }
-
- public Node(Node n) {
- this.left = n.left;
- this.right = n.right;
- this.value = n.value;
- this.row = n.row;
- this.column = n.column;
- this.field_1 = n.field_1;
- this.type = n.type;
- }
-
- public void indent(int ind) {
- for(int i = 0; i < ind; ++i) {
- System.out.print(" ");
- }
-
- }
-
- public void print(int indentLevel) {
- char[] l = new char[1];
- this.indent(indentLevel);
- System.out.println("NODE type=" + this.type);
- this.indent(indentLevel);
- switch (this.type) {
- case 0:
- System.out.println(" op=" + this.field_1);
- this.left.print(indentLevel + 3);
- this.right.print(indentLevel + 3);
- return;
- case 1:
- System.out.println(" value=" + this.value);
- return;
- case 2:
- l[0] = (char)(65 + this.column);
- System.out.println(" cell=" + new String(l) + (this.row + 1));
- return;
- default:
- }
- }
- }
-